package com.example.springboot14.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
// localhost:8080/zg/prop1
@RestController
public class DefinePropController {
    @Value("${zg.demo.erpurl}")
    private String erpurl;
    @Value("${zg.demo.username}")
    private String username;
    @Value("${zg.demo.pwd}")
    private String pwd;
    @RequestMapping("/prop1")
    public String erpProp(){
        return erpurl+","+username+","+pwd;
    }
}
